package com.linkhouse.mapper;

import com.linkhouse.domain.po.TbNewRoom;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.elasticsearch.core.SearchHit;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface TbNewRoomESMapper extends ElasticsearchRepository<TbNewRoom,Long> {
    /*根据地址查询二手房源*/
    List<SearchHit<TbNewRoom>> findBySmallAreaId(Long smallAreaId);
}